import { getVideoInfoQuery, getVideoInfoQueryCount, deleteVideoItem, addVideoItem, getChannel } from './dbHelper';

/**
 * 视频列表
 * @returns
 */
export const getVideoInfoList = async (data: any) => {
  return await getVideoInfoQuery(data);
};

export const getVideoInfoListCount = async (data: any) => {
  return await getVideoInfoQueryCount(data);
};

export const deleteVideo = async (data: any) => {
  return await deleteVideoItem(data);
};

export const addVideo = async (data: any) => {
  return await addVideoItem(data);
};

export const getChannelFromDb = async () => {
  return await getChannel();
};
